﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace OrganizerLibrary.ConfigFile
{
    public class FileProcessorConfigElement : ConfigurationElement
    {
        private const String FileExtensionName = "fileExtension";
        [ConfigurationProperty(FileExtensionName, DefaultValue="", IsKey=true, IsRequired=true)]
        public String FileExtension
        {
            get { return (String) base[FileExtensionName]; }
            set { base[FileExtensionName] = value; }
        }


        private const String TargetDirectoryName = "targetDirectory";
        [ConfigurationProperty(TargetDirectoryName, DefaultValue = "", IsKey = false, IsRequired = true)]
        public String TargetDirectory 
        {
            get { return (String)base[TargetDirectoryName]; }
            set { base[TargetDirectoryName] = value; }
        }
    }
}
